#pragma once
#ifndef SDEF_SELSCENE
#define SDEF_SELSCENE

#include <SypX/SypX.h>
#include "Scene.h"

namespace SheepDefence
{
	struct mission;

	class SelectionScene : public Scene
	{
	public:
		SelectionScene(SypX::Font* f, int level, mission& stats);
		~SelectionScene(void);
		virtual void init();
		virtual void run();
		virtual void handleInput();
	private:		
		SypX::Renderer* render;
		SypX::Engine* engine;
		SypX::Canvas* canvas;

		SypX::Mesh* bgMesh;
		SypX::Texture* bgTex, * backTex, * dogTex[3];
		SypX::MeshInstance* bg;
		SypX::SoundBuffer* snd;
		SypX::Font* font;

		SypX::Button* back, * dogs[3];
		mission stats;
		int level;

		void goBack(SypX::GuiComponent* g, SypX::Event& e);
		void goPlay(SypX::GuiComponent* g, SypX::Event& e);
	};
}
#endif